package com.lingyuan.web;

import com.lingyuan.common.core.domain.vo.pms.SearchResult;
import com.lingyuan.service.SearchsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName EsControllerWeb
 * @Description 描述
 * @Author guoxin
 * @Date 2024/8/19 14:36
 */
@Controller
public class EsWebController {
    @Autowired
    private SearchsService esServcie;
    @GetMapping("/list.html")
    private String index( Model model) {
        SearchResult searchResultVo = esServcie.search();
        model.addAttribute("searchResultVo",searchResultVo);
        return "list";
    }
}
